Start Powershell Through Command Line
When I'm working on Powershell scripts I will sometimes want to launch them from a batch file and throw a "pause" at the end to see it there is any RED. When working on some server I will need to temporarily change the Execution Policy and use the second script.
CODE:
powershell -file "PowershellScript.ps1"
Pause
Use at your own risk
CODE:
powershell -ExecutionPolicy Unrestricted -file "PowershellScript.ps1"
Pause
Use at your own risk
Download:
Batch Start Powershell.zip
Tag(s):
Batch Powershell Could you spare a few coins?
Dogecoin - D838u1m9YRdzVVu8CZ1JsR78WHgQmUZSr8
Bitcoin - 13iKLoPXcWEYcGtqCi4UcjGQEs7r6M6LFc
Thank you